package com.probox.common.entity.vo.statistics;

import com.probox.common.core.enums.SourcePlatformEnum;
import com.probox.common.core.text.Convert;
import com.probox.common.core.utils.money.MoneyUtils;
import com.probox.common.entity.utils.DictUtils;
import lombok.Data;

import java.io.Serializable;
import java.util.HashMap;

@Data
public class ChannelVo implements Serializable {

    private String sourcePlatform;

    public String getSourcePlatformStr() {
        HashMap dictCacheMap = DictUtils.getDictCacheMap("source_platform");
        return Convert.toStr(dictCacheMap.get(sourcePlatform), sourcePlatform);
    }

    private Integer number;

    private String numberProportion;

    private Long amount;

    public String getAmountStr() {
        return MoneyUtils.changeF2Y(amount);
    }

    private String amountProportion;

    private Integer peopleNumber;

    private String peopleNumberProportion;
}
